Automatic dominant orientation estimation in text images based on steerable filters

ABSTRACT

Briefly, in accordance with one or more embodiments, an image-processing system is capable of receiving an image containing text, applying optical character recognition to the image, and then audibly reproducing the text via text-to-speech synthesis. Prior to optical character recognition, an orientation corrector is capable of detecting an amount of angular rotation of the text in the image with respect to horizontal, and then rotating the image by an appropriate amount to sufficiently align the text with respect to horizontal for optimal optical character recognition. The detection may be performed using steerable filters to provide an energy versus orientation curve of the image data. A maximum of the energy curve may indicate the amount of angular rotation that may be corrected by the orientation corrector.

CROSS-REFERENCE TO RELATED APPLICATION

The present patent application is a continuation patent application of U.S. patent application Ser. No. 11/961,648, filed Dec. 20, 2007, entitled “Automatic Dominant Orientation Estimation In Text Images Based On Steerable Filters, invented by Oscar Nestares, the disclosure of which is incorporated by reference herein.

BACKGROUND

Image-processing systems may be utilized by visually impaired persons to obtain images of text and to process the text images so that the corresponding text can be audibly read aloud to the user by an appropriate text-to-speech engine. In such image-processing systems, optical character recognition engines may be utilized to convert text in an image format into text in a character-based format for further processing by the text-to-speech engine. Often, however, the text may not be optimally aligned with respect to horizontal in the image to be processor, or the image itself may not have been captured in a sufficient alignment with respect to horizontal, thereby causing the text to be rotationally offset from horizontal. Typically, an optical character recognition engine may require the text in the image to be aligned within a certain range, typically +/−10 degrees from horizontal, in order to be able to properly recognize the characters contained in the text.

DESCRIPTION OF THE DRAWING FIGURES

Claimed subject matter is particularly pointed out and distinctly claimed in the concluding portion of the specification. However, such subject matter may be understood by reference to the following detailed description when read with the accompanying drawings in which:

Claimed subject matter is particularly pointed out and distinctly claimed in the concluding portion of the specification. Such subject matter may, however, be understood by reference to the following detailed description when read with the accompanying drawings in which:

FIG. 1 is a block diagram of an image-processing system in accordance with one or more embodiments;

FIG. 2 is a block diagram of an orientation corrector capable of detecting and correcting an orientation of an image received by an image-processing system in accordance with one or more embodiments;

FIG. 3 is a plot of energy versus orientation utilized to determine an orientation of an image in an orientation corrector in accordance with one or more embodiments;

FIG. 4 is an example image that has been rotated by an orientation corrector of an image-processing system in accordance with one or more embodiments; and

FIG. 5 is a block diagram of an information-handling system capable of tangibly embodying an imaging system having an orientation corrector in accordance with one or more embodiments.

It will be appreciated that for simplicity and/or clarity of illustration, elements illustrated in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, if considered appropriate, reference numerals have been repeated among the figures to indicate corresponding and/or analogous elements.

DETAILED DESCRIPTION

In the following detailed description, numerous specific details are set forth to provide a thorough understanding of claimed subject matter. It will, however, be understood by those skilled in the art that claimed subject matter may be practiced without these specific details. In other instances, well-known methods, procedures, components and/or circuits have not been described in detail.

In the following description and/or claims, the terms coupled and/or connected, along with their derivatives, may be used. In particular embodiments, connected may be used to indicate that two or more elements are in direct physical and/or electrical contact with each other. Coupled may mean that two or more elements are in direct physical and/or electrical contact. Coupled may, however, also mean that two or more elements may not be in direct contact with each other, but yet may still cooperate and/or interact with each other. For example, “coupled” may mean that two or more elements do not contact each other, but are indirectly joined together via another element or intermediate elements. Finally, the terms “on,” “overlying,” and “over” may be used in the following description and claims. “On,” “overlying,” and “over” may be used to indicate that two or more elements are in direct physical contact with each other. “Over” may, however, also mean that two or more elements are not in direct contact with each other. For example, “over” may mean that one element is above another element, but not contact each other and may have another element or elements in between the two elements. Furthermore, the term “and/or” may mean “and,” it may mean “or,” it may mean “exclusive-or, ” it may mean “one” it may mean “some, but not all,” it may mean “neither, ”and/or it may mean “both,” although the scope of claimed subject matter is not limited in this respect. In the following description and/or claims, the terms “comprise” and “include,” along with their derivatives, may be used and are intended as synonyms for each other.

Referring now to FIG. 1, a block diagram of an image-processing processing system in accordance with one or more embodiments will be discussed. In one or more embodiments, image-processing system 100 may be utilized to capture or receive an image that may include one or more passages or regions of text or writing, convert the text image data into text data, and then convert the text into an audible speech format, for example, so that a user of image-processing system 100 may be able to audible hear the words, phrases, and/or sentences in the image. For example, image-processing system 100 may be utilized to assist a user having visual impairment and thus difficulty in seeing and/or reading. Image-processing system 100 may be utilized by such a visually impaired user to read aloud words, phrases, sentences or other text captured or received in an image format, so that the user may hear the words, phrases, sentences, and/or other text as speech. Such speech may be electronically synthesized, for example, in one or more embodiments. As shown in FIG. 1, image-processing system 100 may receive an image input 110 that may be provided to orientation corrector 112 for detecting and orienting an image received by image input 110. In one or more embodiments, image input 110 may comprise circuitry capable of capturing an image and converting the image into a digital format. For example, image input 110 may comprise a camera-based on a charge-coupled device (CCD) array, a complementary metal-oxide semiconductor (CMOS) array, or the like type of imaging device. Alternatively, image input 110 may comprise a front end capable of receiving an image in a digital format from another device that captured the image, and/or optionally converting the image data into an image format suitable for processing by image-processing system 100. For example, in such embodiments, image input 110 may comprise a card or disk reader capable of reading image data from a memory card or disk, a video input system capable of capturing and/or receiving an input signal from another device providing a digital output signal, and so on. These are, however, merely example embodiments for image input 110, and the scope of the claimed subject matter is not limited in these respects.

Orientation corrector 112 receives image data from image input 110 corresponding to an image and/or a video stream. Orientation corrector 112 is utilized to preprocess the image data prior to processing by optical character reader (OCR) engine 114. Typically, OCR engine 114 may perform optimally if the text is presented to optical character engine 114 in a horizontal format, or oriented as nearly horizontal as possible. Images captured and/or received by image-processing system 100 may, however, not always be received in a horizontal alignment, for example, if a camera used to capture the text image is not well aligned with the camera. Likewise, text sometimes may be intentionally written non-horizontally, for example, the text may be written vertically from bottom to top, such as might appear on a poster or sign. In one or more embodiments, OCR engine 114 may be capable of detecting the orientation of the text with respect to a horizontal line, and then correct the image of the text by rotating the text by an appropriate angle so that the text falls within a horizontal alignment, and/or a sufficiently horizontal alignment, to provide a more optimal image for processing by OCR engine 114. The output of OCR engine 114 may then be provided to a text-to-speech synthesizer 116 for converting the text processed by OCR engine 114 into audible speech that may be heard by the user of image-processing engine. It should be noted that any one or more of image input 110, orientation corrector 112, OCR engine 114, and/or text-to-speech block 116 may be implemented in whole or in part in hardware and tangibly embodied by an appropriate circuit, and/or implemented in whole or in part and tangibly embodied by an appropriate software module or program, and the scope of the claimed subject matter is not limited in this respect. Further details of the operation of orientation corrector are shown in and described with respect to FIG. 2, below.

Referring now to FIG. 2, a block diagram of an orientation corrector capable of detecting and correcting an orientation of an image received by an image-processing system in accordance with one or more embodiments will be discussed. As shown in FIG. 2, the blocks of orientation corrector may be implemented to the image data 210 received from image input 110 of FIG. 1. In one or more embodiments, the operations performed by the blocks of orientation corrector may be applied to a multi-resolution pyramid of the input image data 210, in which each level may be obtained by first low-pass filtering the image data 210 from a previous level with a separable cubic b-spline filter, and then subsampling a factor of 2 in both dimensions. The input image from each level, using intensity values, is first filtered at separable derivatives block 212 with a bank of separable derivative filters, which may comprise Gaussian derivative filters for example. In the particular embodiment of separable derivatives block 212 shown in FIG. 2, 6^(th)-order derivatives may be utilized to provide a suitable compromise between angular resolution and computation, since higher orders may provide better resolution, but at a higher cost. The bank of filters implemented by separable derivatives block 212 may comprise first passing the set of derivatives in the horizontal (X) dimension from the Gaussian kernel to the sixth-order derivative of this kernel. Subsequently, the set of derivatives may be applied to the vertical (Y) dimension in reverse order so that the resulting images comprise the set of two-dimensional (2D) sixth-order partial derivatives of the input image data 210. To obtain the set of seven directional derivatives it may be sufficient to apply a set of seven appropriate linear combinations via oriented filters block 214 over the output of the previous stage of separable derivatives block 212. From the set of directional derivatives provided by oriented filters block 214, demodulation and low-pass filter block 216 may be utilized to obtain energy measurements by first demodulating the filter response by the tuning frequency of the filter, and then low-pass filtering to eliminate the replicas of the spectrum. The magnitude of the complex output of demodulation and low-pass filter block 218 may then be computed. In the case of global orientation estimation, the local energy measurements may be collapsed into a single global number for each oriented filter in each resolution level. This may be accomplished by computing the median across all the pixels in each energy image via median block 220, and then taking the average of the resulting values across different resolutions for the same orientation (not shown in FIG. 2). The output of the median block 220 produces a set of energy samples, which comprise seven energy samples in the present example, which are plotted as data points (stars) in the graph 300 of FIG. 3 which represents energy versus orientation. From these data points an interpolated curve of the energy versus orientation may be obtained by interpolation (steering) block 222, interpolating appropriately the responses from the seven samples to arrive at a continuous curve. In one or more embodiments, theoretical interpolation formulas for steerable filters may be utilized, although other interpolation methods may likewise be utilized, and the scope of the claimed subject matter is not limited in this respect. Finally, from the interpolation curve the orientation that produces a maximum energy response may be selected via max block 224 to determine the orientation of the text in the image data 210. In one or more embodiments, the text in image 210 is disposed at an orientation angle corresponding to the angle at maximum energy from the interpolation curve, plus 90 degrees clockwise, which may be indicated by orientation output 226. Orientation corrector 112 may then rotate the image data 210 by an amount of angular rotation indicated by orientation output so that the text may be aligned, or nearly aligned, with respect to horizontal using an appropriate interpolation technique. In one or more embodiments, such an interpolation technique may comprise a bilinear interpolation; however, the scope of the claimed subject matter is not limited in this respect.

Referring now to FIG. 3, a plot of energy versus orientation utilized to determine an orientation of an image in an orientation corrector in accordance with one or more embodiments will be discussed. Plot 300 provides energy in arbitrary units (a.u.) on a vertical axis 310 versus orientation of the directional derivative filter in radians on a horizontal axis 312. As discussed with respect to FIG. 2, above, interpolation (steering) block 222 may provide approximate measured values for energy versus orientation of the corresponding directional derivative filter applied to image data 210, indicated as plot 314. From the set of seven measured sample values, a continuous interpolation curve 316 of energy versus orientation may be obtained by applying appropriate steerable filter interpolation function to the samples. The interpolation curve may then be applied to max block 224 to obtain orientation an orientation output 226 that is representative of the orientation of the image contained in image data 210. The orientation output 226 allows orientation corrector to rotationally align the image with a horizontal line, for example, as shown in and described with respect to FIG. 4, below.

Referring now to FIG. 4, an example image that has been rotated by an orientation corrector of an image processing system in accordance with one or more embodiments will be discussed. FIG. 4 represents an example image 400 that has been rotated by orientation corrector 112 to be aligned, or nearly aligned, with the horizontal in order to optimize the performance of OCR engine 114 to recognize the characters of text contained within image 400. The orientation detection and correction function provided by orientation corrector 112 may provide image preprocessing for image-processing system 100, for example to perform an automatic OCR of pictures taken under non-controlled conditions, such as by low-vision or blind persons. As described herein, orientation corrector 112 may be capable automatically correcting for in-plane rotation to an amount suitable for OCR engine 114, for example, aligned to horizontal within +/−10 degrees. Furthermore, orientation corrector 112 is capable of applying such an orientation detection and correction function to a local portion of an image, so that each local portion may be individually rotated by an amount suitable for OCR processing. The ability of orientation corrector 112 to perform local orientation correction for portions of an image may be obtained via the utilization of steerable filters via oriented filters block 214 since the filter responses are local, meaning that at each pixel there is a set of samples of the local Fourier energy. Therefore, it is possible for orientation corrector 112 to perform a local analysis instead of a global one, thereby allowing for the automatic detection of different regions containing text rotated to different orientations with respect to one another. In one embodiment, the detection of different local orientations may be performed by orientation corrector 112 by first performing clustering of the pixels, using for example k-means to cluster the vectors formed with the energy samples, and then estimating the orientation within each cluster. As a result, if the input image data 210 contains regions of text rotated at different orientations such local analysis can be applied to one or more of the local regions, although the scope of the claimed subject matter is not limited in this respect.

In one or more embodiments, a particular OCR engine 114 may be selected for image processing system 100 independent of the preprocessing capabilities of a given OCR engine 114 in terms of orientation estimation and correction, so that the selection may be made at least in part predominantly on the OCR performance of OCR engine 114 itself rather than being based on preprocessing capabilities, although the scope of the claimed subject matter is not limited in this respect.

Referring now to FIG. 5, a block diagram of an information-handling system capable of tangibly embodying an imaging system having an orientation corrector in accordance with one or more embodiments will be discussed. Information-handling system 500 of FIG. 5 may tangibly embody one or more of any of the components of image-processing system 100 as shown in and described with respect to FIG. 1. For example, Information-handling system 500 may represent the hardware of orientation corrector 112, with greater or fewer components depending on the hardware specifications of the particular device or application. Although information-handling system 500 represents one example of several types of computing platforms, information-handling system 500 may include more or fewer elements and/or different arrangements of elements than shown in FIG. 5, and the scope of the claimed subject matter is not limited in these respects.

Information-handling system 500 may comprise one or more processors, such as processor 510 and/or processor 512, which may comprise one or more processing cores. One or more of processor 510 and/or processor 512 may couple to one or more memories 516 and/or 518 via memory bridge 514, which may be disposed external to processors 510 and/or 512, or alternatively at least partially disposed within one or more of processors 510 and/or 512. Memory 516 and/or memory 518 may comprise various types of semiconductor-based memory, for example, volatile-type memory and/or non-volatile-type memory. Memory bridge 514 may couple to a graphics system 520 to drive a display device (not shown) coupled to information-handling system 500.

Information-handling system 500 may further comprise input/output (I/O) bridge 522 to couple to various types of I/O systems. I/O system 524 may comprise, for example, a universal serial bus (USB) type system, an IEEE-1394-type system, or the like, to couple one or more peripheral devices to information-handling system 500. Bus system 526 may comprise one or more bus systems, such as a peripheral component interconnect (PCI) express type bus or the like, to connect one or more peripheral devices to information handling system 500. A hard disk drive (HDD) controller system 528 may couple one or more hard disk drives or the like to information-handling system 500, for example Serial ATA-type drives or the like, or alternatively a semiconductor-based drive comprising flash memory, phase change, and/or chalcogenide type memory or the like. Switch 530 may be utilized to couple one or more switched devices to I/O bridge 522, for example, Gigabit Ethernet-type devices or the like. Furthermore, as shown in FIG. 5, information-handling system 500 may include a radio-frequency (RF) block 532 comprising RF circuits and devices for wireless communication with other wireless communication devices and/or via wireless networks, although the scope of the claimed subject matter is not limited in this respect.

Although the claimed subject matter has been described with a certain degree of particularity, it should be recognized that elements thereof may be altered by persons skilled in the art without departing from the spirit and/or scope of claimed subject matter. It is believed that the subject matter pertaining to automatic dominant orientation estimation in text images based on steerable filters and/or many of its attendant utilities will be understood by the forgoing description, and it will be apparent that various changes may be made in the form, construction and/or arrangement of the components thereof without departing from the scope and/or spirit of the claimed subject matter or without sacrificing all of its material advantages, the form herein before described being merely an explanatory embodiment thereof, and/or further without providing substantial change thereto. It is the intention of the claims to encompass and/or include such changes. 

What is claimed is:
 1. A method, comprising: generating a set of intensity values for an image by generating by low-pass filtering a previous level of the multi-resolution pyramid with a separable cubic b-spline filter and subsampling a factor of two in each of two directions, the image comprising text at an arbitrary angle of rotation with respect to a horizontal; filtering the intensity values for the image with a bank of separable derivative filters to obtain a set of two-dimensional partial derivatives of the intensity values of the image; generating a set of directional derivatives of the image by using a plurality of oriented filters that are tuned to two or more different orientations; demodulating the set of directional derivatives of the image to obtain energy samples of the image; interpolating the energy samples; determining an orientation of the text of the image based at least in part on a maximum energy value of the interpolated energy samples; and rotating the image based on the determined orientation of the text of the image to align the text with the horizontal.
 2. The method according to claim 1, further comprising performing optical character recognition on the text contained in the rotated image.
 3. A method according to claim 2, further comprising performing the generating of the set of intensity values, the filtering, the generating of the set of directional derivatives, the demodulating, the interpolating; the determining of the orientation of the text, and the rotating on two or more local regions in the image independently of one or more other regions.
 4. A method according to claim 2, further comprising applying a text-to-speech synthesis on an output of the optical character recognition to audibly reproduce the text.
 5. A method according to claim 4, wherein the generating of the set of directional derivatives is performed by seven oriented filters tuned to different orientations.
 6. A method according to claim 5, wherein the rotating comprises aligning the text to within +/−10 degrees with respect to the horizontal.
 7. A method according to claim 1, wherein the generating of the set of directional derivatives is performed by seven oriented filters tuned to different orientations.
 8. A method according to claim 1, wherein the rotating comprises aligning the text to within +/−10 degrees with respect to the horizontal.
 9. A method according to claim 1, wherein the interpolating comprises applying an interpolation method for steerable filters to the energy samples.
 10. A method according to claim 1, wherein the rotating comprises applying a bilinear interpolation to the text contained in the image.
 11. An apparatus, comprising: an orientation corrector capable of detecting an arbitrary angle of rotation of text contained in an image with respect to a horizontal by filtering the image with oriented filters tuned to two or more different orientations, and capable of rotating the image by an amount based at least in part on the detected arbitrary angle to provide a rotated image containing the text aligned to the horizontal, the orientation corrector comprising: a plurality of separable derivative filters capable of filtering the image to provide a set of two-dimensional partial derivatives of the intensity values of the image; a plurality of oriented filters tuned to two or more different orientations to generate a set of directional derivatives of the image; a demodulator capable of demodulating the set of directional derivatives of the image to obtain energy samples of the image, and an interpolator capable of interpolating the energy samples from which an orientation of the text may be determined based at least in part on a maximum energy value of the interpolated energy values.
 12. An apparatus according to claim 11, further comprising an image data block capable of obtaining the image containing the text.
 13. An apparatus according to claim 12, further comprising an optical character recognition engine capable of performing optical character recognition on the text contained in the rotated image.
 14. An apparatus according to claim 13, further comprising a text-to-speech synthesizer capable of converting an output of the optical character recognition into an audible reproduction of the text.
 15. An apparatus according to claim 11, wherein the orientation corrector is further capable of performing the detecting and rotating on two or more local regions in the image independently of one or more other regions.
 16. An apparatus according to claim 15, further comprising an optical character recognition engine capable of performing optical character recognition on the text contained in the rotated image; and a text-to-speech synthesizer capable of converting an output of the optical character recognition into an audible reproduction of the text.
 17. An apparatus according to claim 16, wherein the orientation corrector is capable of aligning the text to within +/−10 degrees with respect to the horizontal.
 18. An apparatus according to claim 11, wherein the orientation corrector is capable of aligning the text to within +/−10 degrees with respect to the horizontal.
 19. An apparatus according to claim 11, wherein the interpolator is capable of applying an interpolation method for steerable filters to the energy samples. 